/*
 @desc: 首页数据展示cell
 @date: 2021/12/28
 */

#import "HomeCollectionViewCell.h"

@interface HomeCollectionViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconIV;



@end

@implementation HomeCollectionViewCell

+ (NSString *)identifierForReuseCell {
    return @"home_cell";
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.iconIV.layer.cornerRadius = 4;
    self.iconIV.clipsToBounds = true;
}

- (void)setData:(NSURL *)url {
    NSData * data = [NSData dataWithContentsOfURL:url];
    UIImage * dataImg = [[UIImage alloc] initWithData: data];
    self.iconIV.image = dataImg;
}

@end
